#include <bits/stdc++.h>
using namespace std;
const int N = 1e6 + 7;
int n, m, a[N];
bool cnt[1007];
bool tmp[1007];
int main() {
  cin >> n >> m;
  for (int i = 1; i <= n; ++i) {
    cin >> a[i];
    a[i] %= m;
    if (a[i] == 0) {
      cout << "YES\n";
      return 0;
    }
  }
  for (int i = 1; i <= n; ++i) {
    int x = a[i];
    tmp[x] = true;

    for (int j = 1; j <= m; ++j) {
      if (cnt[j]) {
        int y = (x + j) % m;
        tmp[y] = true;
      }
    }

    for (int k = 0; k <= m; ++k) {
      if (tmp[k]) cnt[k] = true;
    }

    if (cnt[0]) {
      cout << "YES\n";
      return 0;
    }
  }

  cout << "NO\n";
}
